#引用其他文件的内容
for line in open(r"D:\desktop\text.txt",encoding='UTF-8'):
    #加上encoding='UTF-8'可以避免中文乱码
    print(line)

